import entity

class EntityMgr:
    def __init__(self):
        self.seq = 1
        self.dict = {}

    def New(self):
        e = entity.Entity(self.seq)
        self.dict[self.seq] = e
        self.seq += 1
        return e

    def Del(self, id):
        self.dict.pop(id)

    def Get(self, id):
        if id in self.dict:
            return self.dict[id]
        else:
            return None
